const axios = require('axios')
async function getVersion() {
  const { data } = await axios.get('https://developers.weixin.qq.com/miniprogram/dev/devtools/nightly.html')
  const version = data.match(/2\.01\.\d+/)[0]
  console.log(version)
}
getVersion()